package com.example.boot3.mapper;

import com.example.boot3.model.Card;
import com.example.boot3.model.Recharge;
import com.example.boot3.model.Refuel;
import com.example.boot3.model.Repair;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CardMapper {
    List<Card> getFuelCardsList();
    List<Recharge> getRechargeList();
    List<Refuel> getRefuelList();

    Integer addCard(Card card);
    Integer rechargeCard(Recharge recharge);

    Integer applyRefuel(Refuel refuel);
    Integer addBalance(Integer card_id,Integer amount );
    Integer reduceBalance(Integer card_id,Integer amount);

}
